/* eslint-disable no-unused-vars */
import axios from './index';
import { LoginPayload, RegisterPayload } from '@/typings/user';
export function validate() {
    return axios.get('/user/validate');
}
export function login<T>(params: LoginPayload) {
    return axios.post<T, T>('/user/login', params);
}
export function register<T>(params: RegisterPayload) {
    return axios.post<T, T>('/user/register', params);
}
